import request from '@/utils/request'



// 列表
export function storeList(data) {
  return request({
    url: '/washing/store/query',
    method: 'post',
    data: data
  })
}

// 新增
export function addShop(data) {
  return request({
    url: '/washing/store',
    method: 'post',
    data: data
  })
}

// 修改经纬度
export function updatePosition(data) {
  return request({
    url: `/washing/store/modify/position?id=${data.id}&lng=${data.lng}&lat=${data.lat}&linkPhone=${data.linkPhone}`,
    method: 'post',
    data: data
  })
}

// 删除
export function deleteShop(data) {
  return request({
    url: '/washing/store/delete?id='+data.id,
    method: 'post',
    data: data
  })
}

